// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

//UI框架 element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

//下拉刷新
import VueInfiniteScroll from "vue-infinite-scroll"
import VueLazyload from 'vue-lazyload'

//轮播插件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'

//引入jq
import $ from 'jquery'
Vue.prototype.$ = $;
//通用 css
import './assets/style/base.css'

//MD5 密码加密
import md5 from 'js-md5';  //加密

//组件 验证码
import { verificationCode } from "./util/verificationCode.js"
import './assets/style/verification-code.css'

// font-awesome.css
import 'font-awesome/css/font-awesome.css'

Vue.prototype.$md5 = md5;

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(VueAwesomeSwiper)
Vue.use(VueInfiniteScroll)
Vue.use(VueLazyload, {
  preLoad: 1.3,
  loading: '/static/images/loading.svg'
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
